<script setup>
import AsideView from '@/components/admin/AsideView.vue'
import HeaderView from '@/components/admin/HeaderView.vue'
</script>

<template>
  <el-container style="min-height: 100vh">
    <el-aside style="box-shadow: 2px 0 6px rgb(0 21 41 / 35%)">
      <!-- 引用Aside.vue -->
      <AsideView></AsideView>
    </el-aside>

    <el-container>
      <el-header style="border-bottom: 1px solid #ccc">
        <!--引入header组件-->
        <div>
          <HeaderView></HeaderView>
        </div>
      </el-header>

      <el-main>
        <router-view />
        <!--使用路由，就在main这里面根据不同映射链接切换对应的vue文件在前端显示-->
      </el-main>
    </el-container>
  </el-container>
</template>
